#ifndef TOOLSELECT_H
#define TOOLSELECT_H

#include <Tool>

class ElementSelector;

class QPushButton;

class ToolSelect : public Tool
{
    Q_OBJECT
public:
    explicit ToolSelect(QObject *parent = 0);
    
    QString name() const;
    QString categoryName() const;
    QString iconPath() const;

    void enter();
    void exit();

    void onMousePress(QMouseEvent* pEvent);
    void onMouseMove(QMouseEvent* pEvent);
    void onMouseRelease(QMouseEvent* pEvent);

    void initPropertiesWidget();
private:
    QPointer<ElementSelector> m_selector;

    QPointer<QPushButton> m_buttonRectangle;
    QPointer<QPushButton> m_buttonCircle;
    QPointer<QPushButton> m_buttonPolygon;
signals:
    
public slots:
    void selectionModeChanged();
};

#endif // TOOLSELECT_H
